#!/usr/bin/env python
 
import sys
from PyQt4 import QtCore, QtGui
from gui.Ui_test import Ui_MainWindow
from  lib.data import *

class MyForm(QtGui.QMainWindow):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)
        
    def goShiftPage(self):
        self.ui.stackedWidget.setCurrentIndex(0)
        self.ui.calendarWidget.setEnabled(True)
    def goTrainingPage(self):
        self.ui.stackedWidget.setCurrentIndex(1)
        self.ui.calendarWidget.setEnabled(True)
    def goJobsPage(self):
        self.ui.stackedWidget.setCurrentIndex(2)
        self.ui.calendarWidget.setEnabled(False)
if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    myapp = MyForm()
    myapp.show()
    sys.exit(app.exec_())
